package com.shoplook2025.good.model;

import com.baomidou.mybatisplus.annotation.*;
import com.shoplook2025.brand.model.Brand;
import com.shoplook2025.category.model.Category;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author yan
 * @date 2025/8/26
 */
@Data
@TableName("good")
public class Goods {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(condition = SqlCondition.LIKE)
    private String name;
    private String alias;
    private String summary;
    private BigDecimal markPrice;
    private BigDecimal price;
    private Integer qty;
    private String pic;
    private String pic2;
    private String detailPics;
    private String detail;
    private Boolean isTakeDown;
    private Boolean isHot;
    private Boolean isDel;
    private String description;
    private Integer categoryId;
    private Integer brandId;

    @TableField(exist = false)
    private Category category;
    @TableField(exist = false)
    private Brand brand;
}
